﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using Bioinformatics.Types;

namespace PsomlGui
{
    public partial class ManualSequenceAdditionForm : Form
    {
        public GeneticSequence ManualGeneticSequenceEntry { get; private set; }
        
        public ManualSequenceAdditionForm()
        {
            InitializeComponent();
        }

        private void uxSaveButton_Click(object sender, EventArgs e)
        {
            ManualGeneticSequenceEntry = new GeneticSequence
                                             {
                                                 Sequence = uxSequenceString.Text,
                                                 SourceSpecies = new Species {Name = uxSpeciesName.Text}
                                             };
            DialogResult = DialogResult.OK;
        }

        private void uxCancelButton_Click(object sender, EventArgs e)
        {
            DialogResult = DialogResult.Cancel;
        }
    }
}
